<!DOCTYPE html>
<html lang="en">
<head>
    <title>京伦内容管理系统</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap.min.css" />
    <load href="__PUBLIC__/bootstrap/js/jquery.min.js" />
    <load href="__PUBLIC__/bootstrap/js/bootstrap.min.js" />
    <script type="text/javascript">
        $(document).ready(function(){
            $('.btn-add').click(function(){
                var passwd=$('#password').val();
                var repasswd=$('#repassword').val();
                if(passwd!=repasswd){
                    alert('密码不一致!');
                    return false;
                }
            });
        });
    </script>
</head>
<body>

<!-- header -->
<include file="Public:header" />



<div class="row">
    <!-- left -->

    <include file="User:left" />

    <div class="col-md-8" style="padding-top: 70px;">
        <div class="container">
            <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li><a href="#">System</a></li>
                <li class="active">{$pagetitle}</li>
            </ol>
        </div>

        <!-- Content -->
        <form class="form-horizontal" action="{:U('Admin/User/addHandle')}" method='post'>
            <div class="form-group">
                <label for="username" class="col-sm-2 control-label">用户名:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" placeholder="用户名" name="username" id="username" />
                </div>
                <label class="col-sm-2 control-label"></label>
            </div>

            <div class="form-group">
                <label for="password" class="col-sm-2 control-label">密码:</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" placeholder="密码" name="password" id="password" />

                </div>
                <label class="col-sm-2 control-label"></label>
            </div>

            <div class="form-group">
                <label for="repassword" class="col-sm-2 control-label">确认密码:</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" placeholder="确认密码" name="repassword" id="repassword" />

                </div>
                <label class="col-sm-2 control-label"></label>
            </div>

            <div class="form-group">
                <label for="score" class="col-sm-2 control-label">会员积分:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" placeholder="会员积分" name="score" id="score" />

                </div>
                <label class="col-sm-2 control-label"></label>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">所属角色:</label>
                <div class="col-sm-3">
                    <select class="form-control" name="groupName">
                        <volist name="data" id="vo">
                            <option value="{$vo['id']}">{$vo['title']}</option>
                        </volist>
                    </select>
                </div>
                <label class="col-sm-2 control-label"></label>
            </div>



            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-5">
                    <button type="submit" class="btn btn-success btn-add">添加</button>

                </div>

            </div>

        </form>


    </div>
</div>





</body>
</html>
